_init : function(searchEntry, showAppsButton) {
this.actor = new Shell.Stack({ name: 'viewSelector' });
- this._showAppsBlocked = false;
this._showAppsButton = showAppsButton;
this._showAppsButton.connect('notify::checked', Lang.bind(this, this._onShowAppsButtonToggled));
this._stageKeyPressId = 0;
Main.overview.connect('showing', Lang.bind(this,
function () {
- this._resetShowAppsButton();
this._stageKeyPressId = global.stage.connect('key-press-event',
Lang.bind(this, this._onStageKeyPress));
}));
Main.overview.connect('hiding', Lang.bind(this,
function () {
- this._resetShowAppsButton();
if (this._stageKeyPressId != 0) {
global.stage.disconnect(this._stageKeyPressId);
this._stageKeyPressId = 0;
},
zoomFromOverview: function() {
+ this._showAppsButton.checked = false;
this._workspacesDisplay.zoomFromOverview();
if (!this._workspacesDisplay.activeWorkspaceHasMaximizedWindows())
});
},
- _showPage: function(page, noFade) {
+ _showPage: function(page) {
if (page == this._activePage)
return;
this._activePage = page;
this.emit('page-changed');
- if (oldPage && !noFade)
+ if (oldPage)
Tweener.addTween(oldPage,
{ opacity: 0,
time: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME,
})
});
else
- this._fadePageIn(oldPage);
+ this._fadePageIn();
},
_a11yFocusPage: function(page) {
},
_onShowAppsButtonToggled: function() {
- if (this._showAppsBlocked)
- return;
-
this._showPage(this._showAppsButton.checked ?
this._appsPage : this._workspacesPage);
},
- _resetShowAppsButton: function() {
- this._showAppsBlocked = true;
- this._showAppsButton.checked = false;
- this._showAppsBlocked = false;
-
- this._showPage(this._workspacesPage, true);
- },
-
_onStageKeyPress: function(actor, event) {
// Ignore events while anything but the overview has
// pushed a modal (system modals, looking glass, ...)